# $Id: PKGBUILD 65576 2012-02-21 09:03:53Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>

pkgname=gnome-ppp
pkgver=0.3.23
pkgrel=8
pkgdesc="A GNOME 2 WvDial frontend"
arch=('i686' 'x86_64')
url="http://www.gnomefiles.org/app.php?soft_id=41"
license=('GPL2')
depends=('libglade' 'wvdial')
makedepends=('intltool' 'pkgconfig')
install=gnome-ppp.install
source=(http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/${pkgname}-${pkgver}.tar.bz2
	gnome-ppp-0.3.23-implicit-decl.patch
	gnome-ppp-0.3.23-wvdial-notify.patch)
md5sums=('ec2e20fc713a01c953d759bea3df8618'
         '22eb07c957b8e00b1939560785c97c45'
         '00452b66d033316adff0c01373f6108a')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -Np0 -i ${srcdir}/gnome-ppp-0.3.23-implicit-decl.patch
  patch -Np0 -i ${srcdir}/gnome-ppp-0.3.23-wvdial-notify.patch
  LDFLAGS=-lX11 ./configure --prefix=/usr
  make
  make DESTDIR=${pkgdir} install
}
